package com.hdaccp.shuiguoD.dao;



import com.hdaccp.shuiguoD.entity.Yuangong;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface yuangongDao {
    //显示所有员工
    public List<Yuangong> queryAll();
    public long getTotalCount(@Param("yname") String uname);
    public List<Yuangong> query(@Param("yname") String uname, @Param("offset") int offset, @Param("limit") int limit);
    public int delet(int yid);


    //增加
    public int add(Yuangong yuangong);

    //修改
    public int update(Yuangong yuangong);
    //根据ID查询
    public Yuangong queryById(int yid);
}
